package com.ruoyi.product.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 参数对象 prod_args
 * 
 * @author sztg
 * @date 2023-07-20
 */
public class Args extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 参数ID */
    private Long id;

    /** 参数名 */
    @Excel(name = "参数名")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("image", getImage())
            .append("price", getPrice())
            .append("description", getDescription())
            .append("stock", getStock())
            .toString();
    }
}
